<template>
    <!-- <h1>布局</h1> -->
     <!-- <el-row>
    <el-col :span="24">
      <div class="grid-content ep-bg-purple-dark" />
    </el-col>
  </el-row>
     <el-row>
    <el-col :span="12">
      <div class="grid-content ep-bg-purple-dark" />
    </el-col>
    <el-col :span="12">
      <div class="grid-content ep-bg-purple" />
    </el-col>
  </el-row>
     <el-row :gutter="20">
    <el-col :span="8">
      <div class="grid-content ep-bg-purple-dark" />
    </el-col>
    <el-col :span="8">
      <div class="grid-content ep-bg-purple" />
    </el-col>
    <el-col :span="8">
      <div class="grid-content ep-bg-purple-dark" />
    </el-col>
  </el-row> -->
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">Aside</el-aside>
      <el-container>
        <el-header>Header</el-header>
        <el-main>Main</el-main>
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
</script >
<style lang="less" scoped>
.el-header,
.el-footer {
  background-color: var(--el-color-primary-light-8)
}

.el-aside {
  // background-color: var(--el-color-primary-light-8);
  background-color: rgb(84, 92, 100);
  width: 200px;
  margin: 0;
}

.el-main {
  background-color: var(--el-color-primary-light-6);
  height: calc(~'100vh - 120px'); // 120px 是header和footer的高度和,记得减号前后要有空隙
}
</style>
<style>
.el-row {
  margin-bottom: 20px;
}

.el-row:last-child {
  margin-bottom: 0;
}

.el-col {
  border-radius: 4px;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.ep-bg-purple-dark {
  background: #99a9bf;
}
.ep-bg-purple {
  background: #d3dce6;
}

</style>